package qto

import (
	"comm/selfreg"
	"core/class"
	"core/coreqto"
	"reflect"
)

type CommDeviceQto struct {
	Sid string `json:"sid"                         gorm:"column:sid;size:50; unique;comment:设备编号;"`

	CommPortId  int64 `json:"commPortId,string"                         gorm:"column:comm_port_id;comment:协议类型;"`
	CommProxyId int64 `json:"commProxyId,string"                         gorm:"column:comm_proxy_id;comment:代理程序;"`
	CommDealId  int64 `json:"commDealId,string"                         gorm:"column:comm_deal_id;comment:处理程序;"`

	PhysicalState string `json:"physicalState"                         gorm:"column:physical_state;size:10; DEFAULT:'离线';comment:物理在线状态;"`
	LogicState    string `json:"logicState"                         gorm:"column:logic_state;size:10; DEFAULT:'离线';comment:逻辑在线状态;"`

	coreqto.BasePageQto
}

func init() {

	var mcls = &CommDeviceQto{}
	var m = &class.MyClass{
		Name:     "联网设备Qto",
		Ename:    "",
		FullName: "",
		Memo:     "",
		Fileds:   nil,
		PrjName:  "",
		Type:     reflect.TypeOf(mcls),
	}
	selfreg.AddQto(m)
}
